package junittests;

import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;

import org.xml.sax.SAXException;

import util.ParseFredMeyerItemHtml;
import junit.framework.TestCase;


public class TestParseFredMeyerItemHtml extends TestCase {

	public TestParseFredMeyerItemHtml(String name)
	{
		super(name);
	}
	public void testThatWeGetConnection() throws IOException, SAXException
	{
		String strUrl = "http://fredmeyer.inserts2online.com/breakout.jsp?referrer=imagemap&imageName=b686700_18.jpg&isBreakoutImage=true&pageNumber=1&breakoutName=b686700_18.jpg&itemId=&showAsPage=true";
		//String strUrl = "http://fredmeyer.inserts2online.com/I2O_MainFrame.jsp?pageNumber=1&drpStoreID=13&adId=31255&adPath=KrogerFredMeyer10032010WeeklyAd"; 
		//String strUrl = "http://fredmeyer.inserts2online.com/customer_Frame.jsp?divID=701&drpStoreID=00013";
		ParseFredMeyerItemHtml parseObj = new ParseFredMeyerItemHtml();
		URL url = null;
		try {
			url = new URL(strUrl);
		} catch (MalformedURLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		parseObj.set_parserUrl(url);
		parseObj.ParseUrl();
	}
	public  static void main(String[] args)
	{
		junit.textui.TestRunner.run(TestParseFredMeyerItemHtml.class);
	}
	
}
